#include "gtest/gtest.h"
#include "Circle.h"

USING_NS_B2D

TEST(test_circle, simple_intersection)
{
	Circle c0(0, 0, 1);
	Circle c1(5, 5, 2);
	Circle c2(0, 0, 0.5f);

	bool false_intersection = c0.insersects(c1);
	bool true_intersection = c0.insersects(c2);

	EXPECT_EQ(false, false_intersection);
	EXPECT_EQ(true, true_intersection);
}

TEST(test_circle, test_empty_intersection)
{
	Circle c0(0, 0, 1);
	Circle c1(0, 0, 0);

	bool intersection = c0.insersects(c1);

	EXPECT_EQ(false, intersection);
}